﻿/*******************************************************************************

    Units of Measure for C# applications

    Copyright (C) 2013 Marek Aniola

    This program is provided to you under the terms of the license
    as published at http://unitsofmeasure.codeplex.com/license


********************************************************************************/
using System;
using System.Globalization;

namespace Man.UnitsOfMeasure
{
	public interface ITextParser<T> where T : struct
	{
		bool TryParse(string input, UnitSystem<T> units, NumberStyles style, IFormatProvider fp, out Quantity<T> result);
		bool TryParse(string input, UnitSystem<T> units, NumberStyles style, IFormatProvider fp, out Level<T> result);
	}
}
